<!-- 操作 -->
{if empty($role_id)}
{$role_id = user_helper::get_admin_role_id()}
{/if}
{if $order_info.progress == order_config::DEALER_WAIT_PAY}
    <hr>
    {if in_array($role_id, array(user_config::ADMIN, user_config::OPERATOR, user_config::MULTIPLE_DIVISION, user_config::MULTIPLE_DIVISION_MANAGER))}
        <a class="btn btn-xs btn-primary js_orderProgressBtn" data-action="DEALER_ACTION_CANCEL" data-order_id="{$order_info.id}">取消订单</a>
        {if $order_info.enough_to_pay}
            <a class="btn btn-xs btn-info js_orderProgressBtn" data-action="DEALER_ACTION_MINUS" data-order_id="{$order_info.id}">确认扣款</a>
        {else}
            <label class="btn btn-xs btn-default">余额不足</label>
        {/if}
    {/if}
{/if}
{if $order_info.progress == order_config::DEALER_WAIT_CONFIRM}
    <hr>
    {if in_array($role_id, array(user_config::ADMIN, user_config::OPERATOR, user_config::MULTIPLE_DIVISION, user_config::MULTIPLE_DIVISION_MANAGER))}
        <a class="btn btn-xs btn-primary js_orderProgressBtn" data-action="DEALER_ACTION_CANCEL" data-order_id="{$order_info.id}">取消订单</a>
        <a class="btn btn-xs btn-warning js_orderProgressBtn" data-action="DEALER_ACTION_ADD_GOODS" data-order_id="{$order_info.id}">添加备注(赠品)</a>
        <a class="btn btn-xs btn-success js_orderProgressBtn" data-action="DEALER_ACTION_CONFIRM" data-order_id="{$order_info.id}">确认订单</a>
    {/if}
{/if}
{if $order_info.progress == order_config::DEALER_WAIT_PRINT}
    <hr>
    {if in_array($role_id, array(user_config::ADMIN, user_config::OPERATOR, user_config::FACTORY, user_config::MULTIPLE_DIVISION, user_config::MULTIPLE_DIVISION_MANAGER))}
        <a class="btn btn-xs btn-info js_orderProgressBtn" data-action="DEALER_ACTION_PRINT" data-order_id="{$order_info.id}">打印出库联</a>
    {/if}
{/if}
{if $order_info.progress == order_config::DEALER_WAIT_PREPARE}
    <hr>
    {if in_array($role_id, array(user_config::ADMIN, user_config::OPERATOR, user_config::MULTIPLE_DIVISION, user_config::MULTIPLE_DIVISION_MANAGER))}
        <a class="btn btn-xs btn-warning js_orderProgressBtn" data-action="DEALER_ACTION_REPRINT" data-order_id="{$order_info.id}">再次打印出库联</a>
    {/if}
    {if in_array($role_id, array(user_config::ADMIN, user_config::OPERATOR, user_config::FACTORY, user_config::MULTIPLE_DIVISION, user_config::MULTIPLE_DIVISION_MANAGER))}
        <a class="btn btn-xs btn-danger js_orderProgressBtn" data-action="DEALER_ACTION_PREPARE" data-order_id="{$order_info.id}">开始备货</a>
    {/if}
{/if}
{if $order_info.progress == order_config::DEALER_WAIT_SEND}
    <hr>
    {if in_array($role_id, array(user_config::ADMIN, user_config::OPERATOR, user_config::MULTIPLE_DIVISION, user_config::MULTIPLE_DIVISION_MANAGER))}
        <a class="btn btn-xs btn-warning js_orderProgressBtn" data-action="DEALER_ACTION_REPRINT" data-order_id="{$order_info.id}">再次打印出库联</a>
    {/if}
    {if in_array($role_id, array(user_config::ADMIN, user_config::OPERATOR, user_config::FACTORY, user_config::MULTIPLE_DIVISION, user_config::MULTIPLE_DIVISION_MANAGER))}
        <a class="btn btn-xs btn-info js_orderProgressBtn" data-action="DEALER_ACTION_SEND" data-order_id="{$order_info.id}">确认发货</a>
    {/if}
{/if}
{if $order_info.progress == order_config::DEALER_SENDING}
    <hr>
    {if in_array($role_id, array(user_config::ADMIN, user_config::OPERATOR, user_config::MULTIPLE_DIVISION, user_config::MULTIPLE_DIVISION_MANAGER))}
        <a class="btn btn-xs btn-warning js_orderProgressBtn" data-action="DEALER_ACTION_REPRINT" data-order_id="{$order_info.id}">再次打印出库联</a>
    {/if}
    {if in_array($role_id, array(user_config::ADMIN, user_config::OPERATOR, user_config::FACTORY, user_config::MULTIPLE_DIVISION, user_config::MULTIPLE_DIVISION_MANAGER))}
        <a class="btn btn-xs btn-info js_orderProgressBtn" data-action="DEALER_ACTION_MODIFY_DELIVERY" data-order_id="{$order_info.id}">货单填写</a>
    {/if}
    {if in_array($role_id, array(user_config::ADMIN, user_config::OPERATOR, user_config::MULTIPLE_DIVISION, user_config::MULTIPLE_DIVISION_MANAGER))}
        <a class="btn btn-xs btn-success js_orderProgressBtn" data-action="DEALER_ACTION_DONE" data-order_id="{$order_info.id}">确认到货</a>
    {/if}
{/if}
<!-- /操作 -->